package com.baidu.qianfan.entity;

import lombok.Data;

import java.util.List;

/**
 * Stable-Diffusion-XL图像ai模型响应对象
 */
@Data
public class StableDiffusionXLResponseBody {
    private String id;
    private String object;
    private int created;
    private List<ImageObject> data;
    private UsageObject usage;
    private String error_code;
    private String error_msg;

    /**
     * Stable-Diffusion-XL图像ai模型响应对象的image对象,内嵌类
     */
    @Data
    public static class ImageObject {
        private int index;
        private String object;
        private String b64_image;
    }

    /**
     * Stable-Diffusion-XL图像ai模型响应对象的usage对象,内嵌类
     */
    @Data
    public static class UsageObject {
        private int prompt_tokens;
        private int total_tokens;
    }
}

